package com.naiterui.ehp.bs.agent.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import lombok.Data;

import java.util.Date;

/**
 * 经纪人区域关系
 * @author yiren
 * @since 2022/2/10
 */
@Data
@Entity
public class AgAgentArea implements java.io.Serializable {
    public static final int AREA_ACTIVE_YSE = 1;
    public static final int AREA_ACTIVE_NO = 0;

    public static final int AREA_LEV_REGION = 1;
    public static final int AREA_LEV_PROVINCE = 2;
    /**
     * 经理
     */
    public static final int TITLE_TYPE_MANAGE = 2;
    /**
     * 经纪人
     */
    public static final int TITLE_TYPE_AGENT = 3;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;
    /**
	 * 区域id
     */
    private Long areaId;
    /**
     * 自定义区域名称
     */
    private Long agentId;
    /**
     * 区域级别 1:大区，2:省区
     */
    private Integer areaLev;
    /**
     * 职称类型（2:经理, 3:经纪人）
     */
    private Integer titleType;
    /**
     * 是否激活（0:否，1:是）
     */
    private Integer areaActive;
    /**
     * 创建时间
     */
    private Date createdAt;
}
